package org.redr.canvas;


/*
 * This is the base class of all SignalClasses used in Red-R
 * 
 * The class contains methods that should be universal to all signals including;
 * 1. handling signal hierarchy (the convert to and convert from lists)
 * 2. containing methods to get and set data
 * 3. methods to save and load the signal
 * 4. methods to return a string representation of the signal
 */
public class SignalClass {
	
	public static final String[] connectionTypes = {};
	private Object data;
	private String widgetId;
	
	public SignalClass(String id, Object newData)
	{
		data = newData;
		widgetId = id;
	}
	
	public Object getData()
	{
		return data;
	}
	
	public void setData(String newData)
	{
		data = newData;
	}
	
	public String getWidgetId()
	{
		return widgetId;
	}
	
	public String str()
	{
		return data.toString();
	}
	
}
